package com.zhouwr.system.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 路由显示信息
 * 
 * @author zhouwr
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class MetaVo
{
    /**
     * 设置该路由在侧边栏和面包屑中展示的名字
     */
    private String title;

    /**
     * 设置该路由的图标，对应路径src/icons/svg
     */
    private String icon;

    /**
     * 或者你可以给每一个子路由设置自己的权限
     * ['admin','editor'] => 'admin,editor'.split(',')
     */
    private String[] roles = new String[]{};

    /**
     * 不会被 <keep-alive> 缓存
     */
    private Boolean noCache;

    /**
     * 固定在标签栏
     */
    private Boolean affix;
}
